using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.ModelConfiguration;using Maxleaf.EDI.Domain.K3;

namespace Maxleaf.EDI.DataAccess.K3
{
    public class t_BaseSchemaTypeItemMap : EntityTypeConfiguration<t_BaseSchemaTypeItem>
    {
        public t_BaseSchemaTypeItemMap()
        {
            // Primary Key
            this.HasKey(t => t.FID);

            // Properties
            this.Property(t => t.FID)
                .HasDatabaseGeneratedOption(DatabaseGeneratedOption.None);

            // Table & Column Mappings
            this.ToTable("t_BaseSchemaTypeItem");
            this.Property(t => t.FID).HasColumnName("FID");
            this.Property(t => t.FTypeID).HasColumnName("FTypeID");
            this.Property(t => t.FBillTypeID).HasColumnName("FBillTypeID");
            this.Property(t => t.FIsImport).HasColumnName("FIsImport");
            this.Property(t => t.FIfHasDeleted).HasColumnName("FIfHasDeleted");
        }
    }
}
